#include <stdio.h>
#include <math.h>
#include <time.h> 


int main()
{
   int i=0,j=0,t=0,a[99]={0};
   srand((unsigned)time(NULL));
   for(i=0;i<100;i++)
{
   a[i]=rand()%100;
    
      for(j=0;j<i;j++)
          if(a[i]==a[j])
             {i--;break;}
}

   for(j=0;j<100;j++)
      for(i=0;i<100-j;i++)
         if(a[i]>a[i+1])
            {t=a[i];a[i]=a[i+1];a[i+1]=t;}  
 for(i=0;i<100;i++)printf("%d %d\n",i+1,a[i]);
return 0;
}
